package com.oop.fengzuang;
//import com.oop.LEIgouzhaoqi.persons;
public class Application {
    public static void main(String[] args) {

        student s1 = new student("linjia");
        s1.getName(); //构造器传入值
        System.out.println(s1.getName());

        s1.setName("linjiajia"); //用get方法操作，封装留出来的端口。
        System.out.println(s1.getName());

        s1.setAge(-1); //输入不合法数据
        System.out.println(s1.getAge());

    }

}
